package santiago.view.menu;

public class DialogPlayerStatistics extends javax.swing.JDialog {

    private String Login;

    /**
     * Creates new form DialogPlayerStatistics
     */
    public DialogPlayerStatistics(java.awt.Frame parent, boolean modal, String Login) {
        super(parent, modal);
        this.Login = Login;
        initComponents();
        setLocationRelativeTo(null);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        LabelLogin = new javax.swing.JLabel();
        LabelGamesPlayed = new javax.swing.JLabel();
        LabelGamesWon = new javax.swing.JLabel();
        LabelFavorite = new javax.swing.JLabel();
        LabelGamesPlayedResult = new javax.swing.JLabel();
        LabelGamesWonResult = new javax.swing.JLabel();
        LabelFavoriteResult = new javax.swing.JLabel();
        ButtonClose = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        LabelLogin.setFont(new java.awt.Font("Lucida Sans", 1, 18)); // NOI18N
        LabelLogin.setForeground(new java.awt.Color(179, 96, 74));
        LabelLogin.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        LabelLogin.setText(Login);

        LabelGamesPlayed.setFont(new java.awt.Font("Lucida Sans", 1, 14)); // NOI18N
        LabelGamesPlayed.setText("Nombre de parties jouées :");

        LabelGamesWon.setFont(new java.awt.Font("Lucida Sans", 1, 14)); // NOI18N
        LabelGamesWon.setText("Nombre de parties gagnées :");

        LabelFavorite.setFont(new java.awt.Font("Lucida Sans", 1, 14)); // NOI18N
        LabelFavorite.setText("Plantation préférée :");

        LabelGamesPlayedResult.setFont(new java.awt.Font("Lucida Sans", 0, 14)); // NOI18N
        LabelGamesPlayedResult.setText("resultat1");

        LabelGamesWonResult.setFont(new java.awt.Font("Lucida Sans", 0, 14)); // NOI18N
        LabelGamesWonResult.setText("resultat2");

        LabelFavoriteResult.setFont(new java.awt.Font("Lucida Sans", 0, 14)); // NOI18N
        LabelFavoriteResult.setText("resultat3");

        ButtonClose.setFont(new java.awt.Font("Lucida Sans", 1, 14)); // NOI18N
        ButtonClose.setForeground(new java.awt.Color(179, 96, 74));
        ButtonClose.setText("Fermer");
        ButtonClose.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ButtonCloseActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(21, 21, 21)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .add(LabelGamesPlayed)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(LabelGamesPlayedResult))
                    .add(layout.createSequentialGroup()
                        .add(LabelFavorite)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(LabelFavoriteResult))
                    .add(layout.createSequentialGroup()
                        .add(LabelGamesWon)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 42, Short.MAX_VALUE)
                        .add(LabelGamesWonResult)))
                .add(70, 70, 70))
            .add(LabelLogin, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(ButtonClose)
                .add(152, 152, 152))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(LabelLogin)
                .add(29, 29, 29)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(LabelGamesPlayed)
                    .add(LabelGamesPlayedResult))
                .add(18, 18, 18)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(LabelGamesWon)
                    .add(LabelGamesWonResult))
                .add(18, 18, 18)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(LabelFavorite)
                    .add(LabelFavoriteResult))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 107, Short.MAX_VALUE)
                .add(ButtonClose)
                .add(20, 20, 20))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void ButtonCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ButtonCloseActionPerformed
        dispose();
    }//GEN-LAST:event_ButtonCloseActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton ButtonClose;
    private javax.swing.JLabel LabelFavorite;
    private javax.swing.JLabel LabelFavoriteResult;
    private javax.swing.JLabel LabelGamesPlayed;
    private javax.swing.JLabel LabelGamesPlayedResult;
    private javax.swing.JLabel LabelGamesWon;
    private javax.swing.JLabel LabelGamesWonResult;
    private javax.swing.JLabel LabelLogin;
    // End of variables declaration//GEN-END:variables
}
